package com.guys8.cemsbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * (Class)表实体类
 *
 * @author breeze
 * @since 2022-08-24 16:11:29
 */
@Setter
@Getter
@ToString
@Data
@Accessors(chain = true)
public class Class extends Model<Class> {
    @TableId(value = "class_id",type = IdType.AUTO)
    private Integer classId;
    private Integer creatorId;
    private String className;
    //0-正常状态，1-创建审核，2-删除审核
    private Integer auditState;
    @TableLogic
    private Integer isDelete;
    private Integer ext1;
    private String ext2;

    public Class(){};
    public Class(Integer userid, String classname) {
        setCreatorId(userid);
        setClassName(classname);
        setAuditState(1);
        setIsDelete(0);
    }
}

